import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI, { Message } from 'element-ui'
import 'vant/lib/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import $ from 'jquery'
import componentRegister from './utils/register-component/index'
import VueClipboard from 'vue-clipboard2'

window.$ = $
window.jQuery = $
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueClipboard)
Vue.prototype.$errAlert = ((err, remarks) => {
    Message({
        message: remarks ? remarks : `网络连接出现问题${err}`,
        type: 'warning'
    })
})
componentRegister()
new Vue({
    router,
    store,
    render: (h) => h(App)
}).$mount('#app')

